<template>
  <div style="width: 100%">
    <div style="height: 70px; display: inline-block; width: 80%;">
      <div class="row">
        <div class="row-div">
          <p-select v-model="form.salesOrganization" class="row-input" />
          <span class="row-span">销售组</span>
        </div>
        <div style="width: 50%" class="row-div">
          <p-select style="width: 80%;" class="row-input" />
          <span class="row-span">
            Model Name
          </span>
        </div>
        <div class="row-div">
          <p-select v-model="form.modelName" class="row-input" />
          <span class="row-span">机种</span>
        </div>
      </div>
      <div class="row">
        <div class="row-div">
          <p-input v-model="form.name" class="row-input" />
          <span class="row-span">客户简称</span>
        </div>
        <div style="width: 50%" class="row-div">
          <div class="row-div-div">
            <p-select v-model="form.application" class="row-input" />
            <span class="row-span">应用别</span>
          </div>
          <div class="row-div-div">
            <p-select v-model="form.appearance" class="row-input" />
            <span class="row-span">形态</span>
          </div>
        </div>
        <div class="row-div">
          <p-select v-model="form.manufactureArea" class="row-input" />
          <span class="row-span">
            生产地
          </span>
        </div>
      </div>
    </div>
    <div class="button-div">
      <div style="width: 44px; float: left">
        <p-button
          class="commonbutton"
          style=" margin-bottom: 5px"
          type="primary"
        >
          搜索
        </p-button>
        <p-button class="commonbutton">重置</p-button>
      </div>
      <div style="margin-left: 42px; float: left">
        <p-button class="button commonbutton">导出</p-button>
      </div>
    </div>
  </div>
</template>

<script>
const defaultForm = {
  name: '',
  modelName: '',
  salesOrganization: '',
  application: '',
  appearance: '',
  manufactureArea: '',
};
export default {
  data() {
    return {
      form: {
        ...defaultForm,
      },
    };
  },
};
</script>

<style lang="less" scope>
.row {
  width: 100%;
  justify-content: space-around;
  display: flex;
  float: left;
  &-span {
    float: right;
    line-height: 35px;
    margin-right: 7px;
  }
  &-input {
    width: 70%;
    float: right;
  }
  &-div {
    width: 24%;
    height: 35px;
    &-div {
      width: 47%;
      height: 35px;
      float: right;
    }
  }
}
.button-div {
  width: 19%;
  float: right;
  height: 70px;
}
.button {
  height: 66px;
}
</style>
